package com.dream.service2.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dream.service2.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper extends BaseMapper<User> {

    User checkLogin(@Param(value = "username") String username,
                    @Param(value = "password") String password);

    User selectByUsername(@Param(value = "username") String username);
    List<User> selectList();


}
